package models

import "gorm.io/gorm"

type Video struct {
	gorm.Model
	UserId    int    `gorm:"type:int;not null;comment:用户ID"`
	Title     string `gorm:"type:varchar(30);not null;comment:视频标题"`
	Context   string `gorm:"type:varchar(300);not null;comment:视频内容"`
	LikeCount int    `gorm:"type:int;default:0;not null;comment:点赞次数"`
}
